package com.znsd.entity;


import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("order_info")
public class OrderInfo extends Model<OrderInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 收货人
     */
    private String consignee;
    /**
     * 总金额
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;
    /**
     * 订单状态
     */
    @TableField("order_status")
    private String orderStatus;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 付款方式
     */
    @TableField("payment_way")
    private String paymentWay;
    /**
     * 预计送达时间
     */
    @TableField("expect_delivery_time")
    private Date expectDeliveryTime;
    /**
     * 送货地址
     */
    @TableField("delivery_address")
    private String deliveryAddress;
    @TableField("order_comment")
    private String orderComment;
    @TableField("out_trade_no")
    private String outTradeNo;
    /**
     * 订单描述(第三方支付用)
     */
    @TableField("trade_body")
    private String tradeBody;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 失效时间
     */
    @TableField("expire_time")
    private Date expireTime;
    @TableField("ware_status")
    private String wareStatus;
    @TableField("parent_order_id")
    private Long parentOrderId;
    @TableField("process_status")
    private String processStatus;
    @TableField("tracking_no")
    private String trackingNo;
    @TableField("consignee_tel")
    private String consigneeTel;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPaymentWay() {
        return paymentWay;
    }

    public void setPaymentWay(String paymentWay) {
        this.paymentWay = paymentWay;
    }

    public Date getExpectDeliveryTime() {
        return expectDeliveryTime;
    }

    public void setExpectDeliveryTime(Date expectDeliveryTime) {
        this.expectDeliveryTime = expectDeliveryTime;
    }

    public String getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public String getOrderComment() {
        return orderComment;
    }

    public void setOrderComment(String orderComment) {
        this.orderComment = orderComment;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getTradeBody() {
        return tradeBody;
    }

    public void setTradeBody(String tradeBody) {
        this.tradeBody = tradeBody;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public String getWareStatus() {
        return wareStatus;
    }

    public void setWareStatus(String wareStatus) {
        this.wareStatus = wareStatus;
    }

    public Long getParentOrderId() {
        return parentOrderId;
    }

    public void setParentOrderId(Long parentOrderId) {
        this.parentOrderId = parentOrderId;
    }

    public String getProcessStatus() {
        return processStatus;
    }

    public void setProcessStatus(String processStatus) {
        this.processStatus = processStatus;
    }

    public String getTrackingNo() {
        return trackingNo;
    }

    public void setTrackingNo(String trackingNo) {
        this.trackingNo = trackingNo;
    }

    public String getConsigneeTel() {
        return consigneeTel;
    }

    public void setConsigneeTel(String consigneeTel) {
        this.consigneeTel = consigneeTel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
        "id=" + id +
        ", consignee=" + consignee +
        ", totalAmount=" + totalAmount +
        ", orderStatus=" + orderStatus +
        ", userId=" + userId +
        ", paymentWay=" + paymentWay +
        ", expectDeliveryTime=" + expectDeliveryTime +
        ", deliveryAddress=" + deliveryAddress +
        ", orderComment=" + orderComment +
        ", outTradeNo=" + outTradeNo +
        ", tradeBody=" + tradeBody +
        ", createTime=" + createTime +
        ", expireTime=" + expireTime +
        ", wareStatus=" + wareStatus +
        ", parentOrderId=" + parentOrderId +
        ", processStatus=" + processStatus +
        ", trackingNo=" + trackingNo +
        ", consigneeTel=" + consigneeTel +
        "}";
    }
}
